<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>订单详情</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<%@ include file="/jsp/common/commonJs.jsp"%>
</head>
<script>
	
</script>
<%@ include file="/jsp/head_bus.jsp"%>
<script>
	window.onload = function() {
		$("title").html("我的业务--分期付款");
	};
</script>
<div class="c-data mb70">
	<table>
		<thead>
			<tr>
				<th width="10%">产品名称</th>
				<th width="10%">付费方式</th>
				<th width="10%">合同（协议）期限</th>
				<th width="10%">金额</th>
				<th width="10%">已付款</th>
				<th width="10%">未付款</th>
				<th width="10%">下次付款日期</th>
				<th width="10%">逾期</th>
				<th width="10%">结束日期</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list}" var="order">
				<tr>
					<td>${order.productName}</td>
					<td>${order.paymentType==1?"月付":order.paymentType==12?"年付":order.paymentType==3?"季付":order.paymentType==6?"半年付":"一次性付"}</td>
					<td>${order.productTime}年</td>
					<td>${order.productPrice}</td>
					<td>${order.hadPay}</td>
					<td>${order.notPay}</td>
					<td>${order.nextPayTime}</td>

					<td>
					<c:set var="today">
						<fmt:formatDate value="<%=new Date()%>" pattern="yyyy-MM-dd" type="date" />
					</c:set>
					${today>order.nextPayTime?"<font color=red>是</font>":"<font color=green>否</font>"}
					</td>

					<td>${order.endTime}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<aside class="paging"> <c:forEach items="${page.pageView}"	var="page">
	 		${page}
	 	</c:forEach>
	 </aside>
</div>